<?php

namespace Crm\Filter;

use Zend\InputFilter\InputFilter;
use Zend\InputFilter\Factory as InputFactory;

class CommonFilter
{
    static  function actMyVoteFilter()
    {
        $inputFilter = new InputFilter();
        $factory = new InputFactory();
    
        $inputFilter->add($factory->createInput(array(
            'name'     => 'user_id',
            'required' => true,
            'filters'  => array(
                array('name' => 'StripTags'),
                array('name' => 'StringTrim'),
                array('name' => 'Int'),
            ),
            'validators' => array(
                array(
                    'name' => 'NotEmpty',
                ),
            ),
        )));
    
        return $inputFilter;
    }
     
}